#ifndef _GAL_RECTANGLE_H_
#define _GAL_RECTANGEL_H_

/// <summary>
/// GAL Rect
/// </summary>
typedef struct _Rectangle
{
	int x;
	int y;
	int width;
	int height;

} Rectangle, *RectanglePtr;

/// <summary>
/// Rectangle Macros
/// </summary>
#define RECT_WIDTH(rect) (rect->width)
#define RECT_HEIGHT(rect) (rect->height)

/// <summary>
/// Rectangle Pipeline
/// </summary>
extern int GalRectM(RectanglePtr dst, RectanglePtr src);
extern int GalRectMax(RectanglePtr dst, RectanglePtr src);
extern int GalRectUnion(RectanglePtr dst, RectanglePtr src);
extern int GalRectIntersect(RectanglePtr dst, RectanglePtr src);

#endif